#
#

if ECM_DEBUG
BFD = -lbfd @BFD_DEP_LIBS@
endif

ecxdir = @prefix@/ecx

bin_PROGRAMS = egid

INCLUDES = -I../../lib/libbase -I../../lib/libsr -I../../lib/libebc \
	-I../../lib/libedb -I../../lib/libeds -I../edbd

egid_SOURCES = egid.c egid.h ecx2.c ecx_decoder.c ecx_decoder.h \
		egid_ecx.c \
		egid_tdate.c egid_mime.c \
		egid_headers.c egid_utils.c egid_process.c ../edbd/ecx_esc.c

egid_LDADD = ../../lib/libeds/libeds.la \
	../../lib/libedb/libedb.la \
	../../lib/libebc/libebc.la \
	../../lib/libsr/libsr.la \
	../../lib/libbase/libbase.la -lm @LINK_DL@ -lpthread $(BFD)

ecx_DATA = ecx2.css ecx2.js ecxup.js \
	images/head_bg.gif images/menu_bg.gif \
	images/menu_top.gif images/menu_bottom.gif \
	images/login_bg.gif images/login_btn.gif images/idpwd.gif \
	images/menusep.gif images/logout.gif images/logout_s.gif

EXTRA_DIST = $(ecx_DATA)
